<%@ page language="java" contentType="text/html; charset=UTF-8"%>


<!---------------------------------------头部模块复用------------------------------------------>
<%@ include file="/res/FrontPage/PartialPageReferences/head.jsp" %>

<title>账户明细表</title>

<!-- -----------------------------------正文开始--------------------------------------- -->
<% if(session.getAttribute("users") == null){ %>
<script type="text/javascript">
	alert("请先登录哦~~~");
	window.location="/Bank/WebPage/FrontPage/index.jsp";
</script>
<%}else{ %>
<section class="contact_page">
    <div class="container">
        <div class="row">
            <div class="col-sm-6 col-sm-offset-3 m-t-50">
                <h2 class="underline heading">账户明细表</h2>
                <h4 class="text-center">这里记录了你的账户变化的详细信息</h4>
                
                <table border=’1’ cellspacing=’0’ cellpadding=’5’ class="table table-striped table-bordered table-hover table-condensed">
								<tr><th align="center"> 账目ID </th><th align="center"> 账目类型 </th><th align="center"> 使用金额 </th><th align="center"> 账目时间 </th><th align="center"> 现金剩余 </th><th align="center"> 账目详情 </th></tr>
								<%
									DAO dao = new DAO();
									String sql = "select * from moneylist where name = '" + ((Users)session.getAttribute("users")).getZhanghao() + "'";
									ArrayList<MoneyList> list = new ArrayList<MoneyList>();
									MoneyList cunqv = new MoneyList();
									list = dao.chaxunMoneyList(sql);
									Collections.reverse(list);
								%>
								<% for(MoneyList cc : list){ %>
								<tr><td align="center"><%= cc.getId() %></td><td align="center"><%= cc.getStyle() %></td><td align="center"><%= cc.getValue() %></td><td align="center"><%= cc.getDate() %></td><td align="center"><%= cc.getCash() %></td><td align="center"><%= cc.getSource() %></td></tr>
								<% //if(i>=10) break; %>
								<% } %>
				</table>
                <a href="Consumption.jsp" class="text-success text-center">点击返回快捷消费</a>
            </div>
        </div>
        <div class="row section-top-25">
            <div class="col-xs-12">
                <div class="map"></div>
            </div>
        </div>
    </div>
</section>
<%} %>
<!-- -----------------------------------正文结束--------------------------------------- -->

<!------------尾部顶端的两个角------------>
<div class="shape section-top-50"></div>
<!-----------------------------尾部页面复用------------------------------------->

<%@ include file="/res/FrontPage/PartialPageReferences/foot.jsp" %>